package Controller.admin;

import Controller.BaseHttpServlet;
import Entity.User;
import Services.WebService;

public class AdminBaseServlet extends BaseHttpServlet{
    @Override
    protected boolean checkPrivilege(WebService webServices){
        User user = webServices.getCurrentUser();
        if(user != null){
            return user.getRole().equals("ROLE_ADMIN");
        }
        
        return false;
    }
}
